package br.com.naybee.service.funcaofs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import br.com.naybee.domain.funcabs.FuncaoBs;
import br.com.naybee.framework.client.core.FrontServiceController;
import br.com.naybee.framework.client.models.ListModel;
import br.com.naybee.framework.client.models.Model;

@Controller
@RequestMapping("funcoesFs")
public class FuncaoFs extends FrontServiceController{
	
	@Autowired
	private FuncaoBs funcaoBs;

	@ResponseBody
	@RequestMapping(value = "listarFuncoes", method = RequestMethod.POST)
	public ListModel listarFuncoes(@RequestBody Model model) {
		return funcaoBs.listarFuncoes(model);
	}
}
